home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!chrism.demon.co.uk
- From: Chris Marriott <chris@chrism.demon.co.uk>
- Newsgroups: comp.lang.c++,comp.lang.c,comp.os.ms-windows.programmer.misc
- Subject: Re: Can 'fscanf' be used in 16-bit DLL?
- Date: Wed, 14 Feb 96 18:30:33 GMT
- Organization: None
- Message-ID: <824322633snz@chrism.demon.co.uk>
- References: <DMrn2J.5F7.0.-s@hkusuc.hku.hk>
- Reply-To: chris@chrism.demon.co.uk
- X-NNTP-Posting-Host: chrism.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.30
- X-Mail2News-Path: chrism.demon.co.uk
-
- In article <DMrn2J.5F7.0.-s@hkusuc.hku.hk> h8817968@hkuxb.hku.hk "Daniel" writes:
-
- >I am trying to make a 16-bit DLL by using MSVC V1.51 but, when I
- >compile the program, it gives me the follwing warning:
- >
- >warning C4013: 'fscanf' undefined; assuming extern returning int
- >
- >As expected, the linking stage gives me the following:
- >
- >error L2029: '_fscanf' : unresolved external
- >
- >It seems that 'fscanf' cannot be used if you want to produce a
- >DLL. Can anyone tell me whether my guess is true? If no, what
- >should I do if I want to use 'fscanf'. If yes, is there any
- >alternative function usable?
-
- One option is simply not to define "_WINDLL". I used to use "fscanf" in
- DLLs and it appears to work OK.
-
- Chris
- --
- --------------------------------------------------------------------------
- Chris Marriott, Warrington, UK | Author of SkyMap v3 award-winning
- chris@chrism.demon.co.uk | shareware Win31/Win95 planetarium.
- For full info, see http://www.execpc.com/~skymap
- Author member of Association of Shareware Professionals (ASP)
- --------------------------------------------------------------------------
-
-